<template>
	<view class="download">
		<button @click="handleClick()">点击下载App</button>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				
			}
		},
		methods:{
			handleClick(){
					let src = "http://xhnc.yijiarj.cn:8087/rsc/files/upload/apk/xinhe.apk"
					let form = document.createElement("form")
					form.action = src
					document.getElementsByTagName("body")[0].appendChild(form)
					form.submit()
			}
		}
	}
</script>

<style>
	.download{
		padding: 40rpx;
		padding-top: 400rpx;
	}
	button{
		border-radius: 44rpx;
		background-color: #50d9a8;
		color: #ffffff;
	}
</style>